<div class="page-content">
    
  <form bindsubmit="formSubmit">
  <div class="address" v-if="data.type===0">

   <div class="address-box">
<!-- 收货地址 -->
      <label    for="bindChangeCeliveryC" class="address-left picker"  >
      <div class="address-left-text">{{delivery_type}}</div>
      <image class='ico' src='/pages/shop/images/113.png'></image>
       <input type="text" style="display:  none;" value="" id="bindChangeCeliveryC">
     </label>

     <div class="address-right">
       <div class="address-item">

           <router-link :to="{ name: 'address', params: { type: 1 }}" v-if="address.telNumber">
                <image class='ico' src='/pages/shop/images/112.png'></image>
                <div v-if="delivery_type=='送货上门'">
                  <div class="title1">
                  {{address.provinceName}}{{address.cityName}}{{address.countyName}}{{address.detailInfo}} </div>
                  <div class="info"> {{address.userName}}   {{address.telNumber}}</div>
                </div>
                <div v-if="delivery_type=='到店自取'">
                  <div class="title1">{{address.userName}}   {{address.telNumber}}</div>
                
                </div>
           </router-link>

             <router-link :to="{ name: 'address', params: { type: 1 }}" v-else>
               <image class='ico' src='/pages/shop/images/112.png'></image>
               <div class="title1" v-if="delivery_type=='送货上门'">请选择收货地址</div>
                <div class="title1" v-if="delivery_type=='到店自取'">请选择联系方式</div>
                <div class="info">点击这里</div>
            </router-link>
             <image class='arrowright' src='/pages/shop/images/arrowright.png'></image>
      </div>
         
     
<!-- 收货地址 -->
      


<!-- 选择配送时间 -->
     <label  class="picker" for="chooseDeliveryType"> 
         <div class="address-item" style="border-bottom:none;" v-if="delivery_type=='送货上门'">
          <image class='ico' src='/pages/shop/images/111.png'></image>
          <div class="title1">{{delivery_time[0]}} 
          <span class="light" v-if="data.freight && data.freight.EstimatedTimeOfArrival>0">{{delivery_time[1]}}{{delivery_time[2]?"~"+delivery_time[2]:''}}送达</span>
          </div>
            <image class='arrowright' src='/pages/shop/images/arrowright.png'></image>
         </div>
      
         <div class="address-item" style="border-bottom:none;" v-if="delivery_type=='到店自取'">
          <image class='ico' src='/pages/shop/images/111.png'></image>
          <div class="title1">{{delivery_time[0]=='尽快送达'?'今天':delivery_time[0]}}
          <span v-if="data.freight.EstimatedTimeOfArrival>0" class="light">{{delivery_time[1]}}{{delivery_time[2]?"~"+delivery_time[2]:''}}到店</span>
          </div>
            <image class='arrowright' src='/pages/shop/images/arrowright.png'></image>
         </div>
         <input type="text" value="" style="display:  none;" id="chooseDeliveryType">

     </label>
<!-- 选择配送方式 -->
     </div>
     <div class="clear"></div>
  </div>

</div>

<div v-if="delivery_type=='送货上门' && delivery_coverage>0"  class='charge-item bgw pd10 chooseCard'>
 <div class="charge-item-left">配送范围</div>
 <div class="charge-item-right" style='width:75%;text-align:right;'>
 
 <span >{{delivery_coverage}} 公里内</span>
 </div>
  <div class="clear"></div>
</div>  
 

<!-- 坐标 -->
<!-- <div v-if="isWeiXin && delivery_type=='送货上门' && delivery_coverage>0"  class='charge-item bgw pd10 chooseCard' @click='chooseLocation'>
 <div class="charge-item-left">地理位置</div>
 <div class="charge-item-right" style='width:75%;text-align:right;'>
 <span class='light' v-if="location_info==''">请选择坐标，以便我们更准确送达</span>
 <span v-else>{{location_info.address}} {{location_info.latitude}},{{location_info.longitude}} </span>
 </div>
  <img class='arrowright' src='/pages/shop/images/arrowright.png'/>
  <div class="clear"></div>
</div> -->
<!-- 坐标 -->

<!-- 商品列表 -->
<div class="cart-goods" >
<div class="cart-title" @click='openlocation'>
<div class="s_left"> <image class='ico' src='/pages/shop/images/112.png'></image> {{data.shop_info.name}}</div>
<div class="s_right" v-if="data.business_hours">营业时间：{{data.business_hours}}</div>
<div class="clear"></div>
</div>


<div v-for="item in data.list" class="goods-item" @click='moreAct' data-goods_spec_id="item.goods_spec_id" data-goods_id="item.goods_id">
        <image class='image' :src='item.default_img+"?imageviwe2/1/w/160/h/160"'></image>
        <div class='goods-info' style="margin-top: 0">
          <div class="title1" >{{item.goods_name}}</div>
          <div class="light">{{item.attrs}}</div>
         </div>
         <div class='goods-count'>x{{item.count}}</div>
         <div class="goods-price">¥{{item.total_price}}</div>
         <div class="clear"></div>
 </div>
 

 
<div class='charge-item'  v-for="charge in data.other_charge">
 <div class="charge-item-left">{{charge.name}}</div>
 <div class="charge-item-right">{{charge.showPrice}}</div>
  <div class="clear"></div>
</div>

<div class='remark'>
   <div class="remark-text">备注</div>
   <input name="remark" placeholder="备注..." />  
   <div class='clear'></div>
</div>
<div class='line'></div>
<div class='goods-total-price'>
   共计{{data.count}}件商品 ， 小计{{data.total_price}}元
</div>
</div>

<div   class='charge-item bgw pd10 chooseCard' @click="chooseCard" >
 <div class="charge-item-left">优惠券码</div>
 <div class="charge-item-right">{{card_title?"选择："+card_title:'选择优惠'}}</div>
  <image class='arrowright' src='/pages/shop/images/arrowright.png'></image>
  <div class="clear"></div>
</div>

<div style='height:100px'></div>



<div class="goods-bottom" >
    <div class="goods-bottom-left" style="    margin-top: 14px;margin-left: 10px; text-align: left;"> ¥{{data.total_price}}  
    <span class="light" v-if="data.discounts>0">| 已优惠{{data.discounts}}元</span> 
    </div>
    <div    :class="disabled?'goods-bottom-right btn disabled':'goods-bottom-right btn'" @click='formSubmit' >马上下单</div>
</div>
</form>




</div>
